

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/unleashed/img/favicon.png">
  <link rel="icon" type="image/png" href="/unleashed/img/favicon.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="">
  <meta name="author" content="John Doe">
  <meta name="keywords" content="">
  <title>Linux系统中有趣的命令 - 余月七</title>

  <link  rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.staticfile.org/github-markdown-css/4.0.0/github-markdown.min.css" />
  <link  rel="stylesheet" href="/unleashed/lib/hint/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/10.0.0/styles/github-gist.min.css" />
    
  

  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_pf9vaxs7x7b.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/unleashed/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script  src="/unleashed/js/utils.js" ></script>
  <script  src="/unleashed/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.0.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/unleashed/">&nbsp;<strong>余月七</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/unleashed/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/unleashed/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/unleashed/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/unleashed/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/unleashed/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" href="javascript:">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner intro-2" id="background" parallax=true
         style="background: url('/unleashed/img/shouye.jpg') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="container page-header text-center fade-in-up">
            <span class="h2" id="subtitle">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2020-10-01 10:00" pubdate>
        2020年10月1日 上午
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      904 字
    </span>
  

  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      11
       分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid">
  <div class="row">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-md">
      <div class="container nopadding-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto" id="post">
            <!-- SEO header -->
            <h1 style="display: none">Linux系统中有趣的命令</h1>
            
            <div class="markdown-body" id="post-body">
              <h1 id="Linux系统中有趣的命令（可以玩小游戏）"><a href="#Linux系统中有趣的命令（可以玩小游戏）" class="headerlink" title="Linux系统中有趣的命令（可以玩小游戏）"></a>Linux系统中有趣的命令（可以玩小游戏）</h1><h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p><font size=4>最近，我在看一些关于Linux系统的内容，这里面的内容是真的越学越枯燥，果然学习的过程还是不容易的。记得前几个月初学Linux时，有时候就会碰到小彩蛋，感觉还挺有趣的。今天学着学着就越来越累，就想着放松一下，恰好想起以前在Linux上碰到的一些有趣命令，就想着重新再手底下过一遍。也分享出来让每个人都玩一玩，虽然这些命令网上随处可见，但想着还是自己重新写一遍这些有趣的命令，毕竟我也都忘的差不多了</font></p>
<hr>
<h1 id="我的环境"><a href="#我的环境" class="headerlink" title="我的环境"></a>我的环境</h1><p><strong><font size=4>第一、我是windows10</font></strong></p>
<p><strong><font size=4>第二、用的虚拟机是VMware15.5.0Pro</font></strong></p>
<p><strong><font size=4>第三、虚拟机中的Linux操作系统是Ubuntu18.04</font></strong></p>
<hr>
<h1 id="有趣的命令"><a href="#有趣的命令" class="headerlink" title="有趣的命令"></a>有趣的命令</h1><h2 id="命令一：黑客帝国中的数字矩阵"><a href="#命令一：黑客帝国中的数字矩阵" class="headerlink" title="命令一：黑客帝国中的数字矩阵"></a>命令一：黑客帝国中的数字矩阵</h2><pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install cmatrix</code></pre>



<pre><code class="hljs plain">输入运行命令：cmatrix</code></pre>



<h2 id="命令二：小火车"><a href="#命令二：小火车" class="headerlink" title="命令二：小火车"></a>命令二：小火车</h2><pre><code class="hljs armasm">输入安装命令：sudo apt-<span class="hljs-meta">get</span> install <span class="hljs-built_in">sl</span></code></pre>



<pre><code class="hljs armasm">输入运行命令：<span class="hljs-built_in">sl</span></code></pre>



<h2 id="命令三：跟随鼠标的小猫咪"><a href="#命令三：跟随鼠标的小猫咪" class="headerlink" title="命令三：跟随鼠标的小猫咪"></a>命令三：跟随鼠标的小猫咪</h2><pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install oneko</code></pre>



<pre><code class="hljs plain">输入运行命令：oneko</code></pre>



<h2 id="命令四：跟随鼠标的小眼睛"><a href="#命令四：跟随鼠标的小眼睛" class="headerlink" title="命令四：跟随鼠标的小眼睛"></a>命令四：跟随鼠标的小眼睛</h2><pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install x11-apps</code></pre>



<pre><code class="hljs plain">输入运行命令：xeyes</code></pre>



<h2 id="命令五：小火焰"><a href="#命令五：小火焰" class="headerlink" title="命令五：小火焰"></a>命令五：小火焰</h2><pre><code class="hljs mipsasm">输入安装命令：sudo apt-get <span class="hljs-keyword">install </span>libaa-<span class="hljs-keyword">bin </span></code></pre>



<pre><code class="hljs plain">输入运行命令：aafire</code></pre>



<h2 id="命令六：编写你的艺术字"><a href="#命令六：编写你的艺术字" class="headerlink" title="命令六：编写你的艺术字"></a>命令六：编写你的艺术字</h2><pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install toilet
</code></pre>



<pre><code class="hljs powershell">输入运行命令：toilet <span class="hljs-operator">-f</span> mono12 <span class="hljs-operator">-F</span> gay I Love You!</code></pre>

<pre><code class="hljs erlang-repl">输入运行命令：toilet I Love You!</code></pre>



<pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install figlet</code></pre>



<pre><code class="hljs autoit">输入运行命令：figlet Nice <span class="hljs-keyword">To</span> Meet <span class="hljs-keyword">To</span> You!</code></pre>



<h2 id="命令七：随机输出名人的话、诗"><a href="#命令七：随机输出名人的话、诗" class="headerlink" title="命令七：随机输出名人的话、诗"></a>命令七：随机输出名人的话、诗</h2><pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install fortune fortune-zh</code></pre>



<pre><code class="hljs plain">输入运行命令：fortune</code></pre>

<h2 id="命令八：这只牛会说话"><a href="#命令八：这只牛会说话" class="headerlink" title="命令八：这只牛会说话"></a>命令八：这只牛会说话</h2><pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install xcowsay</code></pre>



<pre><code class="hljs pf">输入运行命令：xcowsay “Hello! Welcome <span class="hljs-keyword">to</span> Yu Yueqi B<span class="hljs-keyword">log</span>”</code></pre>



<h2 id="命令九：显示你的系统版本信息"><a href="#命令九：显示你的系统版本信息" class="headerlink" title="命令九：显示你的系统版本信息"></a>命令九：显示你的系统版本信息</h2><pre><code class="hljs cmake">输入安装命令：sudo apt <span class="hljs-keyword">install</span> screenfetch</code></pre>



<pre><code class="hljs plain">输入运行命令：screenfetch</code></pre>



<h2 id="命令十：有逼格的仪表盘"><a href="#命令十：有逼格的仪表盘" class="headerlink" title="命令十：有逼格的仪表盘"></a>命令十：有逼格的仪表盘</h2><pre><code class="hljs cmake">输入安装命令：sudo apt <span class="hljs-keyword">install</span> hollywood</code></pre>



<pre><code class="hljs plain">输入运行命令：hollwood</code></pre>

<h2 id="命令十一：天气预报"><a href="#命令十一：天气预报" class="headerlink" title="命令十一：天气预报"></a>命令十一：天气预报</h2><pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install curl</code></pre>



<pre><code class="hljs awk">输入运行命令：curl http:<span class="hljs-regexp">//</span>wttr.<span class="hljs-keyword">in</span></code></pre>

<h1 id="小游戏"><a href="#小游戏" class="headerlink" title="小游戏"></a>小游戏</h1><h2 id="命令一：俄罗斯方块"><a href="#命令一：俄罗斯方块" class="headerlink" title="命令一：俄罗斯方块"></a>命令一：俄罗斯方块</h2><pre><code class="hljs cmake">输入安装命令：sudo apt <span class="hljs-keyword">install</span> bastet</code></pre>



<pre><code class="hljs plain">输入运行命令：bastet</code></pre>



<h2 id="命令二：贪吃蛇"><a href="#命令二：贪吃蛇" class="headerlink" title="命令二：贪吃蛇"></a>命令二：贪吃蛇</h2><pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install nsnake</code></pre>



<pre><code class="hljs plain">输入运行命令：nsnake</code></pre>



<h2 id="命令三：飞行射击"><a href="#命令三：飞行射击" class="headerlink" title="命令三：飞行射击"></a>命令三：飞行射击</h2><pre><code class="hljs routeros">输入安装命令：sudo apt-<span class="hljs-builtin-name">get</span> install ninvaders</code></pre>





<pre><code class="hljs plain">输入运行命令：ninvaders</code></pre>

<hr>
<h1 id="最后"><a href="#最后" class="headerlink" title="最后"></a>最后</h1><p><font size=4>其实有趣的命令还有很多，所以如果你有兴趣的话可以去网上自行探索；当然，如果没兴趣就全当娱乐了，如果你也要学Linux的话，何不把这些命令当成你学习Linux过程中的消遣时刻，这也是一个不错的方式！</font></p>
<p>pre {    white-space: pre;    word-wrap: normal } div.postBody {    color: #666;    text-shadow: 0 0px rgba(0, 0, 0, 0.05); } .cnblogs-markdown .hljs{  display: block;  overflow-x: auto;  padding: 0.5em !important;  background: #23241f !important;  font-size: 18px !important; /* font-weight:bold !important;*/ } .cnblogs-markdown .hljs, .hljs-tag, .hljs-subst {  color: #f8f8f2; } .hljs-strong, .hljs-emphasis {  color: #a8a8a2; } .hljs-bullet, .hljs-quote, .hljs-number, .hljs-regexp, .hljs-literal, .hljs-link {  color: #ae81ff; } .hljs-code, .hljs-title, .hljs-section, .hljs-selector-class {  color: #a6e22e; } .cnblogs-markdown .hljs-strong {  font-weight: bold; } .hljs-emphasis {  font-style: italic; } .hljs-keyword, .hljs-selector-tag, .hljs-name, .hljs-attr {  color: #f92672; } .hljs-symbol, .hljs-attribute {  color: #66d9ef; } .hljs-params, .hljs-class .hljs-title {  color: #f8f8f2; } .hljs-string, .hljs-type, .hljs-built_in, .hljs-builtin-name, .hljs-selector-id, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-addition, .hljs-variable, .hljs-template-variable {  color: #e6db74; } .hljs-comment, .hljs-deletion, .hljs-meta {  color: #75715e; }</p>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/unleashed/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA/">计算机</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！</p>
              
              
                <div class="post-prevnext row">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/unleashed/2020/11/12/Tomcat&amp;Servlet%E7%AC%94%E8%AE%B0/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">Tomcat&Servlet使用笔记</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/unleashed/2020/10/01/%E7%AE%80%E5%8D%95%E7%9A%84%E7%94%B5%E8%84%91%E4%BD%BF%E7%94%A8%E7%BB%B4%E6%8A%A4%E6%96%B9%E6%B3%95%EF%BC%88%E8%82%9D%E8%B4%A7%E4%B8%80%EF%BC%89/">
                        <span class="hidden-mobile">简单的电脑使用维护方法(肝货一)</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div id="tocbot"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    
  </main>

  
    <a id="scroll-top-button" href="#" role="button">
      <i class="iconfont icon-arrowup" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  

  

  <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
      <i class="iconfont icon-love"></i>
      <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener">
        <span>Fluid</span></a>
    </div>
    

    

    
  </div>
</footer>

<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="/unleashed/js/debouncer.js" ></script>
<script  src="/unleashed/js/main.js" ></script>

<!-- Plugins -->


  
    <script  src="/unleashed/js/lazyload.js" ></script>
  



  



  <script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
  <script  src="/unleashed/js/clipboard-use.js" ></script>







  <script  src="https://cdn.staticfile.org/tocbot/4.11.1/tocbot.min.js" ></script>
  <script>
    $(document).ready(function () {
      var boardCtn = $('#board-ctn');
      var boardTop = boardCtn.offset().top;

      tocbot.init({
        tocSelector: '#tocbot',
        contentSelector: '#post-body',
        headingSelector: 'h1,h2,h3,h4,h5,h6',
        linkClass: 'tocbot-link',
        activeLinkClass: 'tocbot-active-link',
        listClass: 'tocbot-list',
        isCollapsedClass: 'tocbot-is-collapsed',
        collapsibleClass: 'tocbot-is-collapsible',
        collapseDepth: 0,
        scrollSmooth: true,
        headingsOffset: -boardTop
      });
      if ($('.toc-list-item').length > 0) {
        $('#toc').css('visibility', 'visible');
      }
    });
  </script>



  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "Linux系统中有趣的命令&nbsp;",
      ],
      cursorChar: "_",
      typeSpeed: 70,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>



  <script  src="https://cdn.staticfile.org/anchor-js/4.2.2/anchor.min.js" ></script>
  <script>
    anchors.options = {
      placement: "right",
      visible: "hover",
      
    };
    var el = "h1,h2,h3,h4,h5,h6".split(",");
    var res = [];
    for (item of el) {
      res.push(".markdown-body > " + item)
    }
    anchors.add(res.join(", "))
  </script>



  <script  src="/unleashed/js/local-search.js" ></script>
  <script>
    var path = "/unleashed/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      searchFunc(path, 'local-search-input', 'local-search-result');
      this.onclick = null
    }
  </script>



  <script  src="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.css" />

  <script>
    $('#post img:not(.no-zoom img, img[no-zoom]), img[zoom]').each(
      function () {
        var element = document.createElement('a');
        $(element).attr('data-fancybox', 'images');
        $(element).attr('href', $(this).attr('src'));
        $(this).wrap(element);
      }
    );
  </script>




















</body>
</html>
